<?php 
//require 'conndb.php';
//require 'config.php';
require 'model.php';
class usermodel extends model
{   //private $conn;
	//构造函数，用于建立连接
    function __construct(){
    	parent:: __construct();
   // $this ->conn = new conndb(DB_HOST,DB_USER,DB_PWD,DB_DBNAME,DB_CHARSET);
    }
	function getuserlist()
	{
		/*$data = array(
	array('username'=>'edward','geder'=>'man'),
	array('username'=>'mark','geder'=>'man'),
	array('username'=>'rose','geder'=>'woman'));*/
    $sql = 'select * from users';
    $data = $this -> conn ->query($sql);


		return $data;
	}
}

 ?>